package top.hjcwzx.wrench.mqtt.service.listener;

import org.springframework.context.event.EventListener;
import top.hjcwzx.wrench.mqtt.event.MqttMessageEvent;

/**
 *
 * <p><b>类名：</b> AbstractMqttMessageListener</p>
 * <p><b>描述：</b> 消息监听器抽象类</p>
 * <p><b>创建时间：</b> 2025-06-17 15:34</p>
 *
 * @author 胡锦程
 */
public abstract class AbstractMqttMessageListener implements MqttListener{

    @EventListener
    @Override
    public void handler(MqttMessageEvent event) {
        doHandler(event);
    }

    public abstract void doHandler(MqttMessageEvent event);
}
